const jsonServer = require('json-server');
const server = jsonServer.create();
const router = jsonServer.router('router.js');
const config = {
    port: 3000
}
server.use(router)
server.listen(config.port, () => {
    console.log(`
        PORT: ${config.port}
    `)
})